package com.mz.mattress.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mz.mattress.api.entity.BlackItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BlackItemMapper extends BaseMapper<BlackItem> {

    @Select("select mobile from mz_black_item where black_id=#{blackId} and deleted=0")
    List<String> list(Integer blackId);

    @Select("select count(*) from mz_black_item where black_id=#{blackId} and deleted=0")
    Integer selectCount(Integer blackId);

}
